function refresh_div(quelleDiv, quelContenu,methode,variablesPost)
{

var data = null;	
var xhr_object = null;
if(window.XMLHttpRequest)
{ // Firefox
xhr_object = new XMLHttpRequest();
}
else if(window.ActiveXObject)
{ // Internet Explorer
xhr_object = new ActiveXObject('Microsoft.XMLHTTP');
}
var method = methode;
var filename = quelContenu;

xhr_object.open(method, filename, true);
xhr_object.onreadystatechange = function()
{
if(xhr_object.readyState == 4)
{
var tmp = xhr_object.responseText;
document.getElementById(quelleDiv).innerHTML = tmp;
}
}
if(method == "POST" && variablesPost){   
	//alert(<?php session_start(); echo $_SESSION["dateFormation"]; ?>);
	xhr_object.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
    xhr_object.setRequestHeader("Content-length", variablesPost.length);
    xhr_object.setRequestHeader("Connection", "close");  
    xhr_object.send(variablesPost);
}else
xhr_object.send(null);
}

function visibiliteZoneDossier(etat)
{
	if (etat>1){
		document.getElementById("zoneDevis").style.display='block';
	}
	if (etat>2){
		document.getElementById("zonePAL").style.display='block';
	}
	if (etat>3){
		document.getElementById("zoneCertificat").style.display='block';
	}
	if (etat>4){
		document.getElementById("zoneFacture").style.display='block';
	}
	
}


